//
//  HttpRequestManager.h
//  DesighBook
//
//  Created by 梅明 on 15/9/14.
//  Copyright (c) 2015年 梅明. All rights reserved.
//

#import <Foundation/Foundation.h>

//成功的回调
typedef void (^httpSuccess)(id responseObjec);

//失败的回调
typedef void (^httpFailure)(NSError *error);

@interface HttpRequestManager : NSObject

+(instancetype)shareInstnce;

//主页面数据请求
-(void)getMainInfoSuccess:(httpSuccess)success AndFailure:(httpFailure)Failure;

//主页面的cell详情请求
-(void)getmaintableInfoWithID:(NSString *)numberId AndSuccess:(httpSuccess)success AndFailure:(httpFailure)Failure;

//第二个scrollview数据
-(void)getSecondScrollviewInfoPageId:(NSString *)pageid AndSuccess:(httpSuccess)success AndFailure:(httpFailure)Failure;

//第二个scrollview的跳转detail页面
-(void)getInfoWithNumberId:(NSString *)numberid AndSuccess:(httpSuccess)success AndFailure:(httpFailure)Failure;



//第二个页面家装
-(void)getSecondInfoPage:(int)page AndSpace:(NSInteger )space AndStyle:(NSInteger )style Success:(httpSuccess)success AndFailure:(httpFailure)Failure;

//第二个页面工装
-(void)getSecondInfoPage:(int)page AndSpace:(NSInteger )space Success:(httpSuccess)success AndFailure:(httpFailure)Failure;



//第三个问答页面
-(void)getAskInfoWithurl:(NSString *)url AndSuccess:(httpSuccess)success AndFailure:(httpFailure)Failure;

//第三个问答页面的点击详情
-(void)getAskDetailInfoWithid:(NSString *)numberid AndSuccess:(httpSuccess)success AndFailure:(httpFailure)Failure;
@end
